const path = require("path");

function resolve(dir) {
  return path.join(__dirname, dir);
}
module.exports = {
  publicPath: "./",
  chainWebpack: config => {
    config.resolve.alias
      .set("@$", resolve("src"))
      .set("@api", resolve("src/api"))
      .set("@router", resolve("src/router"))
      .set("@comp", resolve("src/components"))
      .set("@views", resolve("src/views"))
      .set("@store", resolve("src/store"))
      .set("@mock", resolve("src/mock"))
      .set("@assets", resolve("src/assets"))
      .set("@utils", resolve("src/utils"));
  }
};
